#ifndef __CTEXT_H__
#define __CTEXT_H__
#include <string>
#include "CGUIObject.h"
#include <d3dx9.h>
#include "..\Engine\CDevice.h"
#include "..\Includes\IText.h"
//diamon inheritance miatt
#pragma warning( disable : 4250 )

namespace GUI
{
class CText : public CGUIObject , public IText
{
public:
  CText(const int height,const int r, const int g, const int b);
  ~CText();
  virtual void setText(const std::string);
  virtual std::string getText();

  virtual void render();
  virtual void clean();
  virtual void onLostDevice();
  virtual void onResetDevice();



private:
  std::string text;
  ID3DXFont* pFont;
  D3DCOLOR fontColor;
  IDirect3DDevice9* pD3DDevice;

};
}
#pragma warning( default :4250 )

#endif